package me.youline.dataServer.service.support.file;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 公告主题图片文件定位器
 * @author linhan
 *
 */
@Component
public class PubMsgSubjectImgFileLocator extends DefaultFileLocator implements FileLocator{
	
	@Value(value = "#{frontProperties['resource.fileCategory.subject']}")
	private String directory;
	
	@Override
	public String getFilePath(String url) {
		return this.getFileRoot()+url;
	}

	@Override
	protected String getFileCategoryName() {
		return this.directory;
	}


}
